import ARticle from '@/views/ARticle.vue'
import ARticleDetail from '@/views/ARticleDetail.vue'
import COllect from '@/views/COllect.vue'
import LayOut from '@/views/LayOut.vue'
import LIke from '@/views/LIke.vue'
import USer from '@/views/USer.vue'
import Vue from 'vue'
import VueRouter from "vue-router"
Vue.use(VueRouter)
 const router = new VueRouter({
    routes:[
        { path: '/' ,component :LayOut,
            //可以通过children 配置项 配置我们的子路由
            //准备二级路由出口
            children:[
                { path:'/article' ,component:ARticle },
                { path:'/like' ,component:LIke },
                { path:'/user' , component:USer },
                { path:'/collect', component:COllect }
            ]
         },
        { path:'/detail' ,component:ARticleDetail},
      

    ]
 })
 export default router